import Vue from 'vue'
import App from '../src/views/home'

// 路由
import router from './router'
// vuex
import store from "./store"
// 进度条
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'

// 公共样式
import "./assets/css/global.css"

// axios
import axios from "./config/axios.js";
Vue.prototype.$axios = axios;

// element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI);

//api
import * as api from "./api/api.js";
Vue.prototype.api = api;
// Vue.use(api);

Vue.config.productionTip = false

// 挂载
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
